using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using TMS.Domain.Entity;
using TMS.Infrastructrue.Persistence.Configuration.Base;

namespace TMS.Infrastructrue.Persistence.Configuration
{
    public class UniLoginConfiguration : BaseEntityConfiguration<UniLogin>
    {

        public override void Configure(EntityTypeBuilder<UniLogin> builder)
        {
            base.Configure(builder);

            
            builder.ToTable("uni_login");

            builder.Property(x=>x.Openid).HasColumnName("open_id").HasMaxLength(200000).HasColumnOrder(1);
            builder.Property(x=>x.UserId).HasColumnName("user_id").HasMaxLength(200000).HasColumnOrder(2);
           
        }

    }
}